<?php
// +----------------------------------------------------------------------
// | [ WE ONLY DO WHAT IS NECESSARY ]
// +----------------------------------------------------------------------
// | Author < 931274989@qq.com >
// +----------------------------------------------------------------------
// | Explain 机油日志表
// +----------------------------------------------------------------------
namespace app\model;

use think\Model;

class JiyouLog extends Model
{
  public function xiche()
  {
    //关联洗车加盟店 一对一
    return $this->belongsTo('xiche','xid','id');
  }

  public function user()
  {
    //关联用户表 一对一
    return $this->belongsTo('user','openid','openid');
  }

  public function jiyou()
  {
    //关联机油表 一对一
    return $this->belongsTo('jiyou','jid','id');
  }

  public function order()
  {
    //关联订单表 一对一
    return $this->belongsTo('order','id','jid');
  }
}
?>